package apIExercise.object;

import java.util.Arrays;

public class Split {
    public static void main(String[] args) {
        String line="abc123def456ghi78";
        String[] data=line.split("[a-z]+");
        System.out.println(Arrays.toString(data));

        line="123.456.789";
        data=line.split("(\\.)");
        System.out.println(Arrays.toString(data));
    }
}
